package cn.tedu.csmall.product.web;

/**
 * @author 程旭东
 */

public enum ServiceCode {
    OK(20000),
    ERR_BAD_REQUEST(40000),
    ERR_AUTHORIZED(40100),
    ERR_AUTHORIZED_DISABLED(40101),
    ERR_FORBIDDEN(40300),
    ERR_NOT_FOUND(40400),
    ERR_CONFLICT(40900),
    ERR_INSERT(50000),
    ERR_DELETE(50100),
    ERR_UPDATE(50200),
    ERR_SELECT(50300),
    ERR_JWT_SIGNATURE(60000),
    ERR_SYSTEM_ERROR(90000);

    private Integer value;

    ServiceCode(Integer value) {
        this.value = value;
    }

    public Integer getValue(){
        return value;
    }
}
